<?php

/**
 * GestdentReserva filter form.
 *
 * @package    gestdent
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormFilterTemplate.php 11675 2008-09-19 15:21:38Z fabien $
 */
class GestdentReservaFormFilter extends BaseGestdentReservaFormFilter
{
  public function configure()
  {

    //$this->widgetSchema['fecha'] = new sfWidgetFormJQueryDate();

    //$this->widgetSchema['fecha'] = new sfWidgetFormJQueryDate(array(
      //       'image'=>'/images/icons/calendar_view_month.gif',
      //       'format' => '%day%/%month%/%year%')
      //       );


    //'expires_at'   =&gt; new sfWidgetFormFilterDate(array(
        //         'from_date' =&gt; new sfWidgetFormDate(),
       ///          'to_date' =&gt; new sfWidgetFormDate(),
         //        'with_empty' =&gt; 0,                   // Para que no salga el checkbox
           //      'template' =&gt; 'desde %from_date% hasta %to_date%'
             //   ))


    //$this->validatorSchema['fecha'] = new sfValidatorDate(array('date_format' => '%day%%month%%year%'));

    //////////////////////////////////////////////////////////////////
    //$years = range(2000, date('Y') + 3);
    //$ini = new sfWidgetFormJQueryDate(array('image' => '/images/calendar.png', 'format'=>'%day%%month%%year%', 'years'=>array_combine($years, $years)));
    //$fin = new sfWidgetFormJQueryDate(array('image' => '/images/calendar.png', 'format'=>'%day%%month%%year%', 'years'=>array_combine($years, $years)));
    //$this->widgetSchema['fecha'] =
    // new sfWidgetFormFilterDate(array(
    //      'from_date'  => $ini,
	//  'to_date'    => $fin,
	  //'with_empty' => false
     //));
    //$this->widgetSchema->setLabels(array(
	//'fecha'      => 'fechilla',
        //'from_date'  => 'Desde',
	//'to_date'    => 'Hasta',
    //));
    ////////////////////////////////////////////////////////////
    

    //$this->widgetSchema['fecha']= new sfWidgetFormInputHidden();
    
    //$this->widgetSchema['fecha'] = new sfWidgetFormDate( array('format' => '%day%%month%%year%'));

    //$this->widgetSchema['fecha'] = new sfWidgetFormDate( array('format' => '%day%%month%%year%'));
    //$this->validatorSchema['fecha'] = new sfValidatorDate(array('date_format' => '%day%%month%%year%'));

    //$this->widgetSchema['fecha'] = new sfWidgetFormJQueryDate(array('culture' => 'es',));

    $this->widgetSchema['fecha']= new sfWidgetFormInputHidden();
    $this->widgetSchema['personal']= new sfWidgetFormInputHidden();
    $this->widgetSchema['hora']= new sfWidgetFormInputHidden();
    $this->widgetSchema['paciente']= new sfWidgetFormInputHidden();
    //$this->widgetSchema['sucursal']= new sfWidgetFormInputHidden();
    $this->widgetSchema['tipoasistencia']= new sfWidgetFormInputHidden();
    $this->widgetSchema['confirmado']= new sfWidgetFormInputHidden();
    $this->widgetSchema['recepcionado']= new sfWidgetFormInputHidden();
    $this->widgetSchema['observacion']= new sfWidgetFormInputHidden();
  }
}